//
//  YIem_Find_Topics_TableViewCell.m
//  B段_开眼
//
//  Created by YIem on 16/4/28.
//  Copyright © 2016年 Howie. All rights reserved.
//

#import "YIem_Find_Topics_TableViewCell.h"
#define kHeight [UIScreen mainScreen].bounds.size.height
@interface YIem_Find_Topics_TableViewCell ()

@property (nonatomic, strong) UIImageView *imageBack;
@end
@implementation YIem_Find_Topics_TableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.imageBack = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageBack];
   
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.imageBack mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(self.frame.size.width, self.frame.size.height));
    }];
    
 }
- (void)setModel:(YIem_Find_Topics_CellModel *)model
{
    _model = model;
    
    [self.imageBack sd_setImageWithURL:[NSURL URLWithString:model.image]];
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
